import { Component, OnInit } from '@angular/core';

import { UserForgetpassword } from './shared/user-forgetpassword.model';
import { UserForgetpasswordService } from './shared/user-forgetpassword.service';

@Component({
	selector: 'user-forgetpassword',
	templateUrl: 'user-forgetpassword.component.html',
	providers: [UserForgetpasswordService]
})

export class UserForgetpasswordComponent implements OnInit {
	userForgetpassword: UserForgetpassword[] = [];

	constructor(private userForgetpasswordService: UserForgetpasswordService) { }

	ngOnInit() {
		this.userForgetpasswordService.getList().subscribe((res) => {
			this.userForgetpassword = res;
		});
	}
}